package com.bridgeQQ.client.model
{
	import com.bridgeQQ.client.vo.User;
	import com.bridgeQQ.client.vo.UserPossess;
	
	import mx.collections.ArrayCollection;
	
	public class BridgeModel
	{
		[Bindable]
		public var user:User;
        
        private static var _instance:BridgeModel;
        
        [Bindable]
        public var possess:UserPossess;
            
        [Bindable]
        public var userPool:ArrayCollection;
        
        public function BridgeModel()
        {
        	if(_instance)
        	{
        		throw new Error("The model has been created!");
        	}
        	_instance = this;
        }
        
        public static function get instance():BridgeModel
        {
        	if(_instance == null)
        	{
        		new BridgeModel();
        	}
        	return _instance;
        }
	}
}